<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>nih: Mappings</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">nih
   &#160;<span id="projectnumber">0.5</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Mappings</div>  </div>
<div class="ingroups"><a class="el" href="group__spherical__functions.html">Spherical</a></div></div>
<div class="contents">
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnih_1_1_s_h__basis.html">nih::SH_basis&lt; L &gt;</a></td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">NIH_HOST NIH_DEVICE Vector3f&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___spherical.html#gabb50d34723dc8f63f83481dda7e4538a">nih::from_spherical_coords</a> (const Vector2f &amp;uv)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">NIH_HOST NIH_DEVICE Vector2f&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___spherical.html#gae14d642cb444062ebf966fc27f379972">nih::to_spherical_coords</a> (const Vector3f &amp;vec)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">NIH_HOST NIH_DEVICE Vector2f&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___spherical.html#ga5852f54031a04a3c2622ac9c1c3ee181">nih::square_to_unit_disk</a> (const Vector2f uv)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">NIH_HOST NIH_DEVICE Vector2f&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___spherical.html#ga4c1322b35d3548385cfbcde647eaa9b6">nih::unit_disk_to_square</a> (const Vector2f disk)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">NIH_HOST NIH_DEVICE Vector3f&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___spherical.html#ga8b4bb2387e2dcc609267e00777c753d1">nih::square_to_cosine_hemisphere</a> (const Vector2f &amp;uv)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">NIH_HOST NIH_DEVICE Vector2f&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___spherical.html#ga1e65205c0882ccfa8b8cea7ab18525ce">nih::cosine_hemisphere_to_square</a> (const Vector3f &amp;dir)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">NIH_HOST NIH_DEVICE Vector3f&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___spherical.html#ga711e9a117559053c96478f404aa2a278">nih::uniform_square_to_sphere</a> (const Vector2f &amp;uv)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">NIH_HOST NIH_DEVICE Vector2f&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___spherical.html#ga74d80bd5bc66492ae691520586329be5">nih::uniform_sphere_to_square</a> (const Vector3f &amp;vec)</td></tr>
<tr><td class="memTemplParams" colspan="2">template&lt;typename Vector3 &gt; </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top">NIH_HOST_DEVICE float&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group___spherical.html#ga61b3dccbdbb3265ced8cfefc49c4f96c">nih::sh</a> (const int32 l, const int32 m, const Vector3 &amp;v)</td></tr>
<tr><td class="memTemplParams" colspan="2">template&lt;int32 l, typename Vector3 &gt; </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top">NIH_HOST_DEVICE float&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group___spherical.html#ga84c13afac74205bed1f5f3a382088394">nih::sh</a> (const int32 m, const Vector3 &amp;v)</td></tr>
<tr><td class="memTemplParams" colspan="2">template&lt;int32 l, int32 m, typename Vector3 &gt; </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top">NIH_HOST_DEVICE float&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group___spherical.html#ga093407ba5202540f5ca6cc3da2567970">nih::sh</a> (const Vector3 &amp;v)</td></tr>
<tr><td class="memTemplParams" colspan="2">template&lt;typename ZHVector , typename SHVector , typename Vector3 &gt; </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top">NIH_HOST_DEVICE void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group___spherical.html#gac4367786c521d9b0e54b08dd27bcc391">nih::rotate_ZH</a> (const int32 L, const ZHVector &amp;zh_coeff, const Vector3 &amp;d, SHVector &amp;sh_coeff)</td></tr>
<tr><td class="memTemplParams" colspan="2">template&lt;int32 L, typename ZHVector , typename SHVector , typename Vector3 &gt; </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top">NIH_HOST_DEVICE void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group___spherical.html#gad3026df527a2ed22cead3594bdd25b19">nih::rotate_ZH</a> (const ZHVector &amp;zh_coeff, const Vector3 &amp;d, SHVector &amp;sh_coeff)</td></tr>
<tr><td class="memTemplParams" colspan="2">template&lt;int32 l, int32 m, typename Vector3 &gt; </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top">NIH_HOST_DEVICE float&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group___spherical.html#ga0cea7b5e2aa00742a2e8d00af322edf3">nih::rotate_ZH</a> (const float zh_l, const Vector3 &amp;d)</td></tr>
</table>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="ga1e65205c0882ccfa8b8cea7ab18525ce"></a><!-- doxytag: member="nih::cosine_hemisphere_to_square" ref="ga1e65205c0882ccfa8b8cea7ab18525ce" args="(const Vector3f &amp;dir)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">NIH_HOST NIH_DEVICE Vector2f nih::cosine_hemisphere_to_square </td>
          <td>(</td>
          <td class="paramtype">const Vector3f &amp;&#160;</td>
          <td class="paramname"><em>dir</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>inverts the square to cosine-weighted hemisphere mapping</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">dir</td><td>3d direction </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gabb50d34723dc8f63f83481dda7e4538a"></a><!-- doxytag: member="nih::from_spherical_coords" ref="gabb50d34723dc8f63f83481dda7e4538a" args="(const Vector2f &amp;uv)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">NIH_HOST NIH_DEVICE Vector3f nih::from_spherical_coords </td>
          <td>(</td>
          <td class="paramtype">const Vector2f &amp;&#160;</td>
          <td class="paramname"><em>uv</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>maps a point in spherical coordinates to the unit sphere</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">uv</td><td>uv coordinates </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gac4367786c521d9b0e54b08dd27bcc391"></a><!-- doxytag: member="nih::rotate_ZH" ref="gac4367786c521d9b0e54b08dd27bcc391" args="(const int32 L, const ZHVector &amp;zh_coeff, const Vector3 &amp;d, SHVector &amp;sh_coeff)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename ZHVector , typename SHVector , typename Vector3 &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">NIH_HOST_DEVICE void nih::rotate_ZH </td>
          <td>(</td>
          <td class="paramtype">const int32&#160;</td>
          <td class="paramname"><em>L</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const ZHVector &amp;&#160;</td>
          <td class="paramname"><em>zh_coeff</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Vector3 &amp;&#160;</td>
          <td class="paramname"><em>d</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">SHVector &amp;&#160;</td>
          <td class="paramname"><em>sh_coeff</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>rotate a zonal harmonics to an arbitrary direction vector</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">L</td><td>number of bands </td></tr>
    <tr><td class="paramname">zh_coeff</td><td>input Zonal Harmonics coefficients </td></tr>
    <tr><td class="paramname">d</td><td>input vector </td></tr>
    <tr><td class="paramname">sh_coeff</td><td>output Spherical Harmonics coefficients </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gad3026df527a2ed22cead3594bdd25b19"></a><!-- doxytag: member="nih::rotate_ZH" ref="gad3026df527a2ed22cead3594bdd25b19" args="(const ZHVector &amp;zh_coeff, const Vector3 &amp;d, SHVector &amp;sh_coeff)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;int32 L, typename ZHVector , typename SHVector , typename Vector3 &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">NIH_HOST_DEVICE void nih::rotate_ZH </td>
          <td>(</td>
          <td class="paramtype">const ZHVector &amp;&#160;</td>
          <td class="paramname"><em>zh_coeff</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Vector3 &amp;&#160;</td>
          <td class="paramname"><em>d</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">SHVector &amp;&#160;</td>
          <td class="paramname"><em>sh_coeff</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>rotate a zonal harmonics to an arbitrary direction vector, with the number of bands specified at compile-time.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">zh_coeff</td><td>input Zonal Harmonics coefficients </td></tr>
    <tr><td class="paramname">d</td><td>input vector </td></tr>
    <tr><td class="paramname">sh_coeff</td><td>output Spherical Harmonics coefficients </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga0cea7b5e2aa00742a2e8d00af322edf3"></a><!-- doxytag: member="nih::rotate_ZH" ref="ga0cea7b5e2aa00742a2e8d00af322edf3" args="(const float zh_l, const Vector3 &amp;d)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;int32 l, int32 m, typename Vector3 &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">NIH_HOST_DEVICE float nih::rotate_ZH </td>
          <td>(</td>
          <td class="paramtype">const float&#160;</td>
          <td class="paramname"><em>zh_l</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Vector3 &amp;&#160;</td>
          <td class="paramname"><em>d</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>return the (l,m) spherical harmonics coefficient of a zonal harmonics function rotated to match a given axis.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">zh_l</td><td>l-band zonal harmonics coefficient </td></tr>
    <tr><td class="paramname">d</td><td>input vector </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga61b3dccbdbb3265ced8cfefc49c4f96c"></a><!-- doxytag: member="nih::sh" ref="ga61b3dccbdbb3265ced8cfefc49c4f96c" args="(const int32 l, const int32 m, const Vector3 &amp;v)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Vector3 &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">NIH_HOST_DEVICE float nih::sh </td>
          <td>(</td>
          <td class="paramtype">const int32&#160;</td>
          <td class="paramname"><em>l</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int32&#160;</td>
          <td class="paramname"><em>m</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Vector3 &amp;&#160;</td>
          <td class="paramname"><em>v</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>evaluate the (l,m)-th basis function on a given vector</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">l</td><td>band index </td></tr>
    <tr><td class="paramname">m</td><td>subband index </td></tr>
    <tr><td class="paramname">v</td><td>input vector </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga84c13afac74205bed1f5f3a382088394"></a><!-- doxytag: member="nih::sh" ref="ga84c13afac74205bed1f5f3a382088394" args="(const int32 m, const Vector3 &amp;v)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;int32 l, typename Vector3 &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">NIH_HOST_DEVICE float nih::sh </td>
          <td>(</td>
          <td class="paramtype">const int32&#160;</td>
          <td class="paramname"><em>m</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Vector3 &amp;&#160;</td>
          <td class="paramname"><em>v</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>evaluate the (l,m)-th basis function on a given vector, where l is determined at compile-time.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">m</td><td>subband index </td></tr>
    <tr><td class="paramname">v</td><td>input vector </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga093407ba5202540f5ca6cc3da2567970"></a><!-- doxytag: member="nih::sh" ref="ga093407ba5202540f5ca6cc3da2567970" args="(const Vector3 &amp;v)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;int32 l, int32 m, typename Vector3 &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">NIH_HOST_DEVICE float nih::sh </td>
          <td>(</td>
          <td class="paramtype">const Vector3 &amp;&#160;</td>
          <td class="paramname"><em>v</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>evaluate the (l,m)-th basis function on a given vector, where l and m are determined at compile-time.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">v</td><td>input vector </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga8b4bb2387e2dcc609267e00777c753d1"></a><!-- doxytag: member="nih::square_to_cosine_hemisphere" ref="ga8b4bb2387e2dcc609267e00777c753d1" args="(const Vector2f &amp;uv)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">NIH_HOST NIH_DEVICE Vector3f nih::square_to_cosine_hemisphere </td>
          <td>(</td>
          <td class="paramtype">const Vector2f &amp;&#160;</td>
          <td class="paramname"><em>uv</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>maps the unit square to the hemisphere with a cosine-weighted distribution</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">uv</td><td>uv coordinates </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga5852f54031a04a3c2622ac9c1c3ee181"></a><!-- doxytag: member="nih::square_to_unit_disk" ref="ga5852f54031a04a3c2622ac9c1c3ee181" args="(const Vector2f uv)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">NIH_HOST NIH_DEVICE Vector2f nih::square_to_unit_disk </td>
          <td>(</td>
          <td class="paramtype">const Vector2f&#160;</td>
          <td class="paramname"><em>uv</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>map a point on [0,1]^2 to a uniformly distributed point on a disk of radius 1</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">uv</td><td>uv coordinates </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gae14d642cb444062ebf966fc27f379972"></a><!-- doxytag: member="nih::to_spherical_coords" ref="gae14d642cb444062ebf966fc27f379972" args="(const Vector3f &amp;vec)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">NIH_HOST NIH_DEVICE Vector2f nih::to_spherical_coords </td>
          <td>(</td>
          <td class="paramtype">const Vector3f &amp;&#160;</td>
          <td class="paramname"><em>vec</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>computes the spherical coordinates of a 3d point</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">vec</td><td>3d direction </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga74d80bd5bc66492ae691520586329be5"></a><!-- doxytag: member="nih::uniform_sphere_to_square" ref="ga74d80bd5bc66492ae691520586329be5" args="(const Vector3f &amp;vec)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">NIH_HOST NIH_DEVICE Vector2f nih::uniform_sphere_to_square </td>
          <td>(</td>
          <td class="paramtype">const Vector3f &amp;&#160;</td>
          <td class="paramname"><em>vec</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>maps the sphere to a unit square with a uniform distribution</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">dir</td><td>3d direction </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga711e9a117559053c96478f404aa2a278"></a><!-- doxytag: member="nih::uniform_square_to_sphere" ref="ga711e9a117559053c96478f404aa2a278" args="(const Vector2f &amp;uv)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">NIH_HOST NIH_DEVICE Vector3f nih::uniform_square_to_sphere </td>
          <td>(</td>
          <td class="paramtype">const Vector2f &amp;&#160;</td>
          <td class="paramname"><em>uv</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>maps the unit square to the sphere with a uniform distribution</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">uv</td><td>uv coordinates </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga4c1322b35d3548385cfbcde647eaa9b6"></a><!-- doxytag: member="nih::unit_disk_to_square" ref="ga4c1322b35d3548385cfbcde647eaa9b6" args="(const Vector2f disk)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">NIH_HOST NIH_DEVICE Vector2f nih::unit_disk_to_square </td>
          <td>(</td>
          <td class="paramtype">const Vector2f&#160;</td>
          <td class="paramname"><em>disk</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>diskx, disky is point on radius 1 disk. x, y is point on [0,1]^2</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">disk</td><td>disk point </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Thu Nov 24 2011 14:32:44 for nih by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
